package com.extension.company.view.adapter;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.extension.company.admin.R;

/**
 * 作者：zwk
 * 时间：on 2019/2/21 15:11
 * 功能：搜索结果的适配器
 */
public class ScalesFragmentAdapter extends RecyclerView.Adapter<ScalesFragmentAdapter.BrokeageViewHolder> {

	private Context context;

	public ScalesFragmentAdapter(Context context) {
		this.context = context;
	}


	@NonNull
	@Override
	public BrokeageViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {
		View view = LayoutInflater.from(context).inflate(R.layout.brokeage_fragment_item, viewGroup, false);
		return new BrokeageViewHolder(view);
	}

	@Override
	public void onBindViewHolder(@NonNull BrokeageViewHolder brokeageViewHolder, int i) {

	}

	@Override
	public int getItemCount() {
		return 15;
	}

	class BrokeageViewHolder extends RecyclerView.ViewHolder {

		public BrokeageViewHolder(@NonNull View itemView) {
			super(itemView);
		}
	}
}
